﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using GSSoftSL.Views;
using GSSoftSL.Views.HocVienView;

namespace GSSoftSL
{
	public partial class MainGSSoft : UserControl
	{
		public MainGSSoft()
		{
			// Required to initialize variables
			InitializeComponent();
		}

		private void btnTruong_Click(object sender, System.Windows.RoutedEventArgs e)
		{
			MainPanel.Content = new TruongView();
			//MainPanel.Children.Clear();
			//MainPanel.Children.Add(new TruongView());
		}

		private void btnPhong_Click(object sender, System.Windows.RoutedEventArgs e)
		{
			MainPanel.Content = new PhongView();
			//MainPanel.Children.Clear();
			//MainPanel.Children.Add(new PhongView());
		}

		private void btnGiaoVien_Click(object sender, System.Windows.RoutedEventArgs e)
		{
			MainPanel.Content = new GiaoVienView();
            //MainPanel.Children.Clear();
            //MainPanel.Children.Add(new GiaoVienView());
		}

		private void btnMon_Click(object sender, System.Windows.RoutedEventArgs e)
		{
			MainPanel.Content = new MonView();
            //MainPanel.Children.Clear();
            //MainPanel.Children.Add(new MonView());
		}

		private void btnLop_Click(object sender, System.Windows.RoutedEventArgs e)
		{
			MainPanel.Content = new LopView();
            //MainPanel.Children.Clear();
            //MainPanel.Children.Add(new LopView());
		}

		private void btnKhoaHoc_Click(object sender, System.Windows.RoutedEventArgs e)
		{
			MainPanel.Content = new KhoaHocView();
            //MainPanel.Children.Clear();
            //MainPanel.Children.Add(new KhoaHocView());
		}

		private void ToolbarButton_Click(object sender, System.Windows.RoutedEventArgs e)
		{
			//MainPanel.Children.Clear();
            //MainPanel.Children.Add(new KhoaHocView());
		}

	    private void btnHocVien_Click(object sender, RoutedEventArgs e)
	    {
            MainPanel.Content = new HocVienMainView();
	    }
	}
}